package com.dao;

import com.pojo.Book;

import java.util.List;

/**
 * @Discription:
 */
public interface BookDao {

    public int addBook(Book book);
    public int deleteBookByID(Integer id);
    public int updateBook(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBooks();

    Integer queryForPageTotalCount();//设置总记录数

    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize,int min, int max);
}
